package cn.edu.jxust.core.infrastructure.mapper;

import cn.edu.jxust.common.domain.entity.RegulationType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author QiuKangming
 * @since 2020-06-29
 */

public interface RegulationtypeMapper extends BaseMapper<RegulationType> {

    /**
     * 根据id获取监管类型名称
     * @param id 监管类型id号
     * @return String
     */
    @Select("SELECT regulation_name FROM t_regulationtype WHERE id = #{id} AND status = 1")
    String getRegulationNameById(Integer id);

}
